﻿#region 文件信息

// FileName: SoCafeShop/Sohobloo.SoAuth.Service/IRoleService.cs
// Author: Sohobloo
// CreateTime: 2013/06/28 20:31
// UpdateTime: 2013/06/30 3:41

#endregion

#region 引用

using System;
using System.Collections.Generic;
using Sohobloo.SoAuth.Entity;
using Sohobloo.SoMcCoffee.Public.OperationResult;

#endregion

namespace Sohobloo.SoAuth.Service
{
    public interface IRoleService
    {
        #region 方法

        OperationResult CreateRole(SoAuthRole role);

        OperationResult DeleteRole(Guid roleId);

        OperationResult UpdateRole(SoAuthRole role);

        ICollection<SoAuthRole> GetRoleList();

        SoAuthRole GetRole(Guid roleId);

        OperationResult AddUser(Guid roleId, string userName);

        OperationResult RemoveUser(Guid roleId, Guid userId);

        #endregion 方法
    }
}